package cn.wolfcode.shop.cloud.service;

import cn.wolfcode.shop.cloud.domain.User;
import cn.wolfcode.shop.cloud.vo.LoginVo;

public interface IUserService {

    User get(Long id);

    /**
     * 登录
     * @param vo
     * @return
     */
    String doLogin(LoginVo vo);

    /**
     * 延长redis中key的过期时间
     * @param token
     * @return
     */
    boolean refreshToken(String token);

    /**
     * 获取当前登录用户
     * @param token
     * @return
     */
    User getCurrentUser(String token);
}
